Panda3D
Loading...
Searching...
No Matches
bioPtr.I
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file bioPtr.I
10 * @author drose
11 * @date 2002-10-15
12 */
13
14/**
15 *
16 */
17INLINE BioPtr::
18BioPtr(BIO *bio) : _bio(bio) {
19}
20
21/**
22 *
23 */
24INLINE BIO &BioPtr::
25operator *() const {
26 return *_bio;
27}
28
29/**
30 *
31 */
32INLINE BIO *BioPtr::
33operator ->() const {
34 return _bio;
35}
36
37/**
38 *
39 */
40INLINE BioPtr::
41operator BIO * () const {
42 return _bio;
43}
44
45/**
46 *
47 */
48INLINE void BioPtr::
49set_bio(BIO *bio) {
50 _bio = bio;
51}
52
53/**
54 *
55 */
56INLINE BIO *BioPtr::
57get_bio() const {
58 return _bio;
59}
60
61/**
62 * Returns the name of the server we are (or should be) connected to.
63 */
64INLINE const std::string &BioPtr::
65get_server_name() const {
66 return _server_name;
67}
68
69/**
70 * Returns the port on which we are (or should be) connected.
71 */
72INLINE int BioPtr::
73get_port() const {
74 return _port;
75}