Lines Matching refs:ssocket
31 SyncSocket* ssocket;
86 SyncSocket* ssocket;
99 ssocket = syncsocket_connect(fd, sockaddr, CORE_PORT_TIMEOUT_MS);
100 if (ssocket == NULL) {
108 status = syncsocket_start_read(ssocket);
111 syncsocket_free(ssocket);
117 status = syncsocket_read_line_absolute(ssocket, buf, sizeof(buf), deadline);
120 syncsocket_free(ssocket);
126 syncsocket_free(ssocket);
130 status = syncsocket_read_line_absolute(ssocket, buf, sizeof(buf), deadline);
131 syncsocket_stop_read(ssocket);
135 syncsocket_free(ssocket);
139 return ssocket;
148 desc->ssocket = NULL;
160 if (desc->ssocket != NULL) {
161 syncsocket_free(desc->ssocket);
176 if (desc->ssocket != NULL) {
180 desc->ssocket = core_connection_open_socket(&desc->console_address);
182 return (desc->ssocket != NULL) ? 0 : -1;
191 if (desc->ssocket != NULL) {
192 syncsocket_close(desc->ssocket);
204 int status = syncsocket_start_write(desc->ssocket);
211 syncsocket_write(desc->ssocket, buffer, to_write, CORE_PORT_TIMEOUT_MS);
212 syncsocket_stop_write(desc->ssocket);
232 int status = syncsocket_start_read(desc->ssocket);
239 syncsocket_read(desc->ssocket, buffer, to_read, CORE_PORT_TIMEOUT_MS);
240 syncsocket_stop_read(desc->ssocket);
275 status = syncsocket_start_read(desc->ssocket);
281 syncsocket_read_line_absolute(desc->ssocket, buf, sizeof(buf), deadline);
298 status = syncsocket_read_line_absolute(desc->ssocket, buf, sizeof(buf),
300 syncsocket_stop_read(desc->ssocket);
312 syncsocket_stop_read(desc->ssocket);
318 syncsocket_stop_read(desc->ssocket);
362 return (desc != NULL) ? syncsocket_get_socket(desc->ssocket) : -1;