File: socket.h

package info (click to toggle)
netrek-client-cow 3.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 5,028 kB
  • sloc: ansic: 42,893; sh: 2,959; python: 380; makefile: 87
file content (67 lines) | stat: -rw-r--r-- 2,942 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#include <sys/select.h>
/* socket.c */
// void dummy(void);
// void print_sp_s_torp(char *sbuf, int type);
// int resetForce(void);
// int checkForce(void);
void connectToServer(int port);
// int set_tcp_opts(int s);
// int set_udp_opts(int s);
void callServer(int port, char *server);
int isServerDead(void);
void socketPauseNoUser(void);
void socketPause(void);
int readFromServer(fd_set *readfds);
// int dotimers(void);
int getvpsize(char *bufptr);
// int doRead(int asock);
// void handleTorp(struct torp_spacket *packet);
// void handleTorpInfo(struct torp_info_spacket *packet);
// void handleStatus(struct status_spacket *packet);
// void handleSelf(struct you_spacket *packet);
// void handlePlayer(struct player_spacket *packet);
// void handleWarning(struct warning_spacket *packet);
void sendShortPacket(char type, char state);
void sendServerPacket(void *packet);
// void handlePlanet(struct planet_spacket *packet);
// void handlePhaser(struct phaser_spacket *packet);
void handleMessage(struct mesg_spacket *packet);
// void handleQueue(struct queue_spacket *packet);
void sendTeamReq(int team, int ship);
// void handlePickok(struct pickok_spacket *packet);
void sendLoginReq(char *name, char *pass, char *login, char query);
// void handleLogin(struct login_spacket *packet);
void sendTractorReq(char state, char pnum);
void sendRepressReq(char state, char pnum);
void sendDetMineReq(short int torp);
// void handlePlasmaInfo(struct plasma_info_spacket *packet);
// void handlePlasma(struct plasma_spacket *packet);
// void handleFlags(struct flags_spacket *packet);
// void handleKills(struct kills_spacket *packet);
// void handlePStatus(struct pstatus_spacket *packet);
// void handleMotd(struct motd_spacket *packet);
void sendMessage(char *mes, int group, int indiv);
// void handleMask(struct mask_spacket *packet);
void sendOptionsPacket(void);
// void handleBadVersion(struct badversion_spacket *packet);
int gwrite(int fd, char *buf, int bytes);
// void handleHostile(struct hostile_spacket *packet);
// void handlePlyrLogin(struct plyr_login_spacket *packet, int sock);
// void handleStats(struct stats_spacket *packet);
// void handlePlyrInfo(struct plyr_info_spacket *packet);
void sendUpdatePacket(LONG speed);
// void handlePlanetLoc(struct planet_loc_spacket *packet);
// void handleReserved(struct reserved_spacket *packet, int sock);
// void handleShipCap(struct ship_cap_spacket *packet);
void sendUdpReq(int req);
// void handleUdpReply(struct udp_reply_spacket *packet);
int closeUdpConn(void);
void printUdpInfo(void);
// void handleSequence(struct sequence_spacket *packet);
// void Log_Packet(char type, int act_size);
// void Log_OPacket(int type, int size);
void Dump_Packet_Log_Info(void);
// void print_packet(char *packet, int size);
// void print_opacket(char *packet, int size);
// char *strcpyp_return(register char *s1, register char *s2, register int length);
void become(struct player *pl);