ObjFW  Diff

Differences From Artifact [62e35b4e2c]:

To Artifact [57b1d6b16e]:


69
70
71
72
73
74
75

76



77
78
79
80
81
82
83
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87







+

+
+
+







		@throw [OFNotConnectedException newWithClass: isa];

	if (eos) {
		OFReadFailedException *e;

		e = [OFReadFailedException newWithClass: isa
					  requestedSize: size];
#ifndef _WIN32
		e->errNo = ENOTCONN;
#else
		e->errNo = WSAENOTCONN;
#endif

		@throw e;
	}

	if ((ret = recv(sock, buf, size, 0)) < 0)
		@throw [OFReadFailedException newWithClass: isa
					     requestedSize: size];
97
98
99
100
101
102
103

104



105
106
107
108
109
110
111
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119







+

+
+
+







		@throw [OFNotConnectedException newWithClass: isa];

	if (eos) {
		OFWriteFailedException *e;

		e = [OFWriteFailedException newWithClass: isa
					   requestedSize: size];
#ifndef _WIN32
		e->errNo = ENOTCONN;
#else
		e->errNo = WSAENOTCONN;
#endif

		@throw e;
	}

	if ((ret = send(sock, buf, size, 0)) == -1)
		@throw [OFWriteFailedException newWithClass: isa
					      requestedSize: size];