---
title: "Interface StreamConnectionNotifier"
---

`package javax.microedition.io`

```text
public StreamConnection acceptAndOpen()
                               throws IOException
```

## 설명

**Returns:**
- 클라이언트와 통신할 `StreamConnection`

**Throws:**
- `IOException` - I/O 오류가 발생한 경우

## 메서드 요약

- `StreamConnection acceptAndOpen ()` — 서버측 소켓 연결을 나타내는 StreamConnection 객체를 반환합니다.

## 메서드 상세

### acceptAndOpen

```java
public StreamConnection acceptAndOpen()
                               throws IOException
```

**Returns:**
- 클라이언트와 통신할 `StreamConnection`

**Throws:**
- `IOException` - I/O 오류가 발생한 경우
