Skip to content

Commit 709848c

Browse files
committed
int32_t cleanup: SctpSocket: port, fs, assId
1 parent fc96bb1 commit 709848c

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/inet/transportlayer/contract/sctp/SctpSocket.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ void SctpSocket::listen(bool fork, bool reset, uint32_t requests, uint32_t messa
206206
sockstate = LISTENING;
207207
}
208208

209-
void SctpSocket::listen(uint32_t requests, bool fork, uint32_t messagesToPush, bool options, int32_t fd)
209+
void SctpSocket::listen(uint32_t requests, bool fork, uint32_t messagesToPush, bool options, int fd)
210210
{
211211
if (sockstate != CLOSED)
212212
throw cRuntimeError(sockstate == NOT_BOUND ?
@@ -236,7 +236,7 @@ void SctpSocket::listen(uint32_t requests, bool fork, uint32_t messagesToPush, b
236236
sockstate = LISTENING;
237237
}
238238

239-
void SctpSocket::connect(L3Address remoteAddress, int32_t remotePort, bool streamReset, int32_t prMethod, uint32_t numRequests)
239+
void SctpSocket::connect(L3Address remoteAddress, int remotePort, bool streamReset, int prMethod, uint32_t numRequests)
240240
{
241241
EV_INFO << "Socket connect. Assoc=" << assocId << ", sockstate=" << stateName(sockstate) << "\n";
242242

@@ -279,7 +279,7 @@ void SctpSocket::connect(L3Address remoteAddress, int32_t remotePort, bool strea
279279
sockstate = CONNECTING;
280280
}
281281

282-
void SctpSocket::connect(int32_t fd, L3Address remoteAddress, int32_t remotePort, uint32_t numRequests, bool options)
282+
void SctpSocket::connect(int fd, L3Address remoteAddress, int remotePort, uint32_t numRequests, bool options)
283283
{
284284
EV_INFO << "Socket connect. Assoc=" << assocId << ", sockstate=" << stateName(sockstate) << "\n";
285285

@@ -322,7 +322,7 @@ void SctpSocket::connect(int32_t fd, L3Address remoteAddress, int32_t remotePort
322322
sockstate = CONNECTING;
323323
}
324324

325-
void SctpSocket::accept(int32_t assId, int32_t fd)
325+
void SctpSocket::accept(int assId, int fd)
326326
{
327327
Request *cmsg = new Request("Accept", SCTP_C_ACCEPT);
328328
auto cmd = cmsg->addTag<SctpCommandReq>();
@@ -343,7 +343,7 @@ void SctpSocket::acceptSocket(int newSockId)
343343
check_and_cast<cSimpleModule *>(gateToSctp->getOwnerModule())->send(cmsg, gateToSctp);
344344
}
345345

346-
void SctpSocket::connectx(AddressVector remoteAddressList, int32_t remotePort, bool streamReset, int32_t prMethod, uint32_t numRequests)
346+
void SctpSocket::connectx(AddressVector remoteAddressList, int remotePort, bool streamReset, int prMethod, uint32_t numRequests)
347347
{
348348
EV_INFO << "Socket connectx. sockstate=" << stateName(sockstate) << "\n";
349349
remoteAddresses = remoteAddressList;

src/inet/transportlayer/contract/sctp/SctpSocket.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,25 +243,25 @@ class INET_API SctpSocket : public ISocket
243243
*/
244244
void listen(bool fork = true, bool streamReset = false, uint32_t requests = 0, uint32_t messagesToPush = 0);
245245

246-
void listen(uint32_t requests = 0, bool fork = false, uint32_t messagesToPush = 0, bool options = false, int32_t fd = -1);
246+
void listen(uint32_t requests = 0, bool fork = false, uint32_t messagesToPush = 0, bool options = false, int fd = -1);
247247

248248
void accept(int socketId);
249249

250250
/**
251251
* Active OPEN to the given remote socket.
252252
*/
253-
void connect(L3Address remoteAddress, int32_t remotePort, bool streamReset = false, int32_t prMethod = 0, uint32_t numRequests = 0);
253+
void connect(L3Address remoteAddress, int remotePort, bool streamReset = false, int prMethod = 0, uint32_t numRequests = 0);
254254

255-
void connect(int32_t fd, L3Address remoteAddress, int32_t remotePort, uint32_t numRequests, bool options = false);
255+
void connect(int fd, L3Address remoteAddress, int remotePort, uint32_t numRequests, bool options = false);
256256

257257
/**
258258
* Active OPEN to the given remote socket.
259259
* The current implementation just calls connect() with the first address
260260
* of the given list. This behaviour may be improved in the future.
261261
*/
262-
void connectx(AddressVector remoteAddresses, int32_t remotePort, bool streamReset = false, int32_t prMethod = 0, uint32_t numRequests = 0);
262+
void connectx(AddressVector remoteAddresses, int remotePort, bool streamReset = false, int prMethod = 0, uint32_t numRequests = 0);
263263

264-
void accept(int32_t assocId, int32_t fd);
264+
void accept(int assocId, int fd);
265265

266266
void acceptSocket(int newSockId);
267267

0 commit comments

Comments
 (0)