1/*
2 * Copyright (c) 2001-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;
--- 139 unchanged lines hidden (view full) ---
148
149 while (!listener.listen(port, true)) {
150 DPRINTF(Terminal,
151 ": can't bind address terminal port %d inuse PID %d\n",
152 port, getpid());
153 port++;
154 }
155
156 ccprintf(cerr, "%s: Listening for connections on port %d\n",
157 name(), port);
158
159 listenEvent = new ListenEvent(this, listener.getfd(), POLLIN);
160 pollQueue.schedule(listenEvent);
161}
162
163void
164Terminal::accept()
165{
--- 177 unchanged lines hidden ---
2 * Copyright (c) 2001-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;
--- 139 unchanged lines hidden (view full) ---
148
149 while (!listener.listen(port, true)) {
150 DPRINTF(Terminal,
151 ": can't bind address terminal port %d inuse PID %d\n",
152 port, getpid());
153 port++;
154 }
155
156 ccprintf(cerr, "%s: Listening for connections on port %d\n",
157 name(), port);
158
159 listenEvent = new ListenEvent(this, listener.getfd(), POLLIN);
160 pollQueue.schedule(listenEvent);
161}
162
163void
164Terminal::accept()
165{
--- 177 unchanged lines hidden ---