cwbe coordinatez:
101
63540
2076399
856608
2118905

ABSOLUT
KYBERIA
permissions
you: r,
system: public
net: yes

neurons

stats|by_visit|by_K
source
tiamat
K|my_K|given_K
last
commanders
polls

total descendants::
total children::1
show[ 2 | 3] flat


preco mi toto nejde ?

mam zadefinovanu triedu mysocket

class mysocket:
def __init__(self, sock=None):
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

def connect(host, port):
self.sock.connect((host, port))

def mysend(name, msg):
sent = self.sock.send(name+" "+msg+";")
if (sent == 0):
while (sent == 0):
self.sock.connect((host, port))
sent = self.sock.send(name+" "+msg+";")


ale ked ju vytvaram

s = mysocket()

vyhodi my chybu: global name 'self' is not defined

co robim zle ??
a ak ste si vsimli funkcia send je prerobena tak aby ked spadne spojenie, skusila ho opat nadviazat a skusa posielat data az pokial sa to nepodari.. urcite je to ale spravene zle..


  submission:: Re: sockety v pythone :: NEW (1 children )   NEW DESCENDANT   (gnd)


There are currently 9971 K available in
2nd Guild's K-treasury.




get 1 🦆 for 5 🐘
get 1 🐘 for 1 🦆