HomeSort by: relevance | last modified time | path
    Searched refs:sockt (Results 1 - 7 of 7) sorted by relevancy

  /src/usr.bin/talk/
ctl.c 42 * get a socket to talk to. sockt is opened and connected in
61 int sockt; variable in typeref:typename:int
79 sockt = socket(AF_INET, SOCK_STREAM, 0);
80 if (sockt == -1)
82 if (bind(sockt, (struct sockaddr *)&my_addr, sizeof(my_addr)) != 0)
85 if (getsockname(sockt, (struct sockaddr *)&my_addr, &length) == -1)
io.c 74 set[0].fd = sockt;
88 /* There is data on sockt */
89 nb = read(sockt, buf, sizeof buf);
104 /* might lose data here because sockt is non-blocking */
106 write(sockt, buf, nb);
invite.c 51 * our sockt address to the remote talk daemon so it can invite
74 if (listen(sockt, 5) != 0)
95 while ((new_sockt = accept(sockt, 0, 0)) < 0) {
100 close(sockt);
101 sockt = new_sockt;
look_up.c 80 if (connect(sockt, &addr, sizeof(addr)) != -1)
91 close(sockt);
talk.h 42 extern int sockt;
init_disp.c 118 cc = write(sockt, buf, sizeof(buf));
121 cc = read(sockt, buf, sizeof(buf));
  /src/libexec/talkd/
talkd.c 73 int sockt = STDIN_FILENO; variable in typeref:typename:int
139 cc = sendto(sockt, (char *)&response, sizeof (response), 0,

Completed in 18 milliseconds