Example #1
0
def msg_pkget(args):
    print "pkGET args: "
    print args
    acpkreq = ac_pb2.acPublicKeyMessageRequest()
    acpkreq.type = ac_pb2.acPublicKeyMessageRequest.PK_GET
    acpkreq.nick = args[KEY_NICK]
    return acpkreq.SerializeToString()
Example #2
0
def msg_pkget(args):
    print "pkGET args: "
    print args
    acpkreq = ac_pb2.acPublicKeyMessageRequest()
    acpkreq.type = ac_pb2.acPublicKeyMessageRequest.PK_GET
    acpkreq.nick = args[KEY_NICK] 
    return acpkreq.SerializeToString()
Example #3
0
def msg_pkdel(args):
    print "pkDEL args: "
    print args
    acpkreq = ac_pb2.acPublicKeyMessageRequest()
    acpkreq.type = ac_pb2.acPublicKeyMessageRequest.PK_DEL
    if args and args[KEY_NICK]:
        acpkreq.nick = args[KEY_NICK]
    return acpkreq.SerializeToString()
Example #4
0
def msg_pkdel(args):
    print "pkDEL args: "
    print args
    acpkreq = ac_pb2.acPublicKeyMessageRequest()
    acpkreq.type = ac_pb2.acPublicKeyMessageRequest.PK_DEL
    if args and args[KEY_NICK]:
        acpkreq.nick = args[KEY_NICK] 
    return acpkreq.SerializeToString()
Example #5
0
def msg_pklist(args):
    print "pkLIST args: "
    print args
    acpkreq = ac_pb2.acPublicKeyMessageRequest()
    acpkreq.type = ac_pb2.acPublicKeyMessageRequest.PK_LIST
    if args and args[KEY_NICK]:
        print " I M HERE!!!"
        acpkreq.nick = args[KEY_NICK]
    return acpkreq.SerializeToString()
Example #6
0
def msg_pklist(args):
    print "pkLIST args: "
    print args
    acpkreq = ac_pb2.acPublicKeyMessageRequest()
    acpkreq.type = ac_pb2.acPublicKeyMessageRequest.PK_LIST
    if args and args[KEY_NICK]:
        print " I M HERE!!!"
        acpkreq.nick = args[KEY_NICK] 
    return acpkreq.SerializeToString()
Example #7
0
def msg_pkadd(args):
    print "pkADD args: "
    print args
    acpkreq = ac_pb2.acPublicKeyMessageRequest()
    acpkreq.type = ac_pb2.acPublicKeyMessageRequest.PK_ADD
    acpkreq.nick = args[KEY_NICK]
    acpkreq.host = args[KEY_HOST]
    acpkreq.server = args[KEY_SERVER]
    acpkreq.blob = args[KEY_BLOB]
    return acpkreq.SerializeToString()
Example #8
0
def msg_pkadd(args):
    print "pkADD args: "
    print args
    acpkreq = ac_pb2.acPublicKeyMessageRequest()
    acpkreq.type = ac_pb2.acPublicKeyMessageRequest.PK_ADD
    acpkreq.nick = args[KEY_NICK] 
    acpkreq.host = args[KEY_HOST] 
    acpkreq.server = args[KEY_SERVER] 
    acpkreq.blob = args[KEY_BLOB] 
    return acpkreq.SerializeToString()